package com.example.android.utils;

/**
 * @author lizhixian
 * @describe
 * @Version 1.0.0
 * @Created at 2019/2/25 14:16
 */
public class EmptyAudioResult {

    /**
     * 是否为有效的语音     true:有内容的语音；false:无内容的语音；
     */
    boolean isValid;
    int k = 0;
    int s1 = 0;
    int s2 = 0;
    double V1;
    double V2;
    int S;

    public EmptyAudioResult(boolean isValid, int k, int s1, int s2, double v1, double v2, int s) {
        this.isValid = isValid;
        this.k = k;
        this.s1 = s1;
        this.s2 = s2;
        V1 = v1;
        V2 = v2;
        S = s;
    }

    public boolean isValid() {
        return isValid;
    }

    public void setValid(boolean valid) {
        isValid = valid;
    }

    public int getK() {
        return k;
    }

    public void setK(int k) {
        this.k = k;
    }

    public int getS1() {
        return s1;
    }

    public void setS1(int s1) {
        this.s1 = s1;
    }

    public int getS2() {
        return s2;
    }

    public void setS2(int s2) {
        this.s2 = s2;
    }

    public double getV1() {
        return V1;
    }

    public void setV1(double v1) {
        V1 = v1;
    }

    public double getV2() {
        return V2;
    }

    public void setV2(double v2) {
        V2 = v2;
    }

    public int getS() {
        return S;
    }

    public void setS(int s) {
        S = s;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("检测结果= ").append(isValid).append("  ").append("k = ").append(k).append("  ")
                .append("s1 = ").append(s1).append("  ")
                .append("s2 = ").append(s2).append("  ")
                .append("V1 = ").append(V1).append("  ")
                .append("V2 = ").append(V2).append("  ")
                .append("S = ").append(S).append("  ");
        return builder.toString();
    }
}
